import java.util.Arrays;

	/**
	 * This class represent the class Hour in WorkingSchedule. But we have modified it so it will be easy for us to test.
	 * 
	 *
	 */
	public class OurHour{
		private int requiredNumber;
	    private String[] workingEmployees;
		
	    public OurHour(int requiredNumber, String[] workingEmployees){
			this.requiredNumber = requiredNumber;
			this.workingEmployees = new String[workingEmployees.length];
			System.arraycopy(workingEmployees, 0, this.workingEmployees, 0, workingEmployees.length);
		}
		
		@Override
		public int hashCode() {
			final int prime = 31;
			int result = 1;
			result = prime * result + requiredNumber;
			result = prime * result + Arrays.hashCode(workingEmployees);
			return result;
		}

		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			OurHour other = (OurHour) obj;
			if (requiredNumber != other.requiredNumber)
				return false;
			if (!Arrays.equals(workingEmployees, other.workingEmployees))
				return false;
			return true;
		}
	}